dataframe plot distribution of dates

38

df["date"] = df["date"].astype("datetime64")
df.groupby([df["date"].dt.year, df["date"].dt.month]).count().plot(kind="bar")

Comments

Submit
0 Comments